package org.meeting.radish.service.impl;

import org.meeting.radish.entity.TestCase;
import org.meeting.radish.mapper.TestCaseMapper;
import org.meeting.radish.service.TestCaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TestCaseServiceImpl implements TestCaseService {

    @Resource
    TestCaseMapper testCaseMapper;

    @Override
    public Integer addTestCase(TestCase testCase) {
        return testCaseMapper.addTestCase(testCase);
    }

    @Override
    public Integer deleteTestCase(Integer tid) {
        return testCaseMapper.deleteTestCase(tid);
    }

    @Override
    public Integer updateTestCase(TestCase testCase) {
        return testCaseMapper.updateTestCase(testCase);
    }

    @Override
    public List<TestCase> queryTestCaseByQid(Integer qid) {
        return testCaseMapper.queryTestCaseByQid(qid);
    }

    @Override
    public Integer queryQidByTid(Integer tid) {
        return testCaseMapper.queryQidByTid(tid);
    }
}
